package com.thread.test;

public class ThreadTest2 {

    public static void main(String[] args){
        for(int i=0;i<36;i++){
            Thread t = new Thread(new Runnable() {
                            @Override
                            public void run() {
                                int i = 0;
                                while(true){
                                    System.out.println("当前线程:"+Thread.currentThread().getName());
                                }
                            }
                        }, "当前线程" + i);
            t.start();
        }
    }
}
